const Mock = require('mockjs')
const base = '/operation'
module.exports = [{
  url: `${base}/balances/total`,
  type: 'get',
  response: config => {
    const charges = []
    const pays = []
    for (let i = 0; i < 5; ++i) {
      charges.push(Mock.Random.integer(1, 400))
      pays.push(Mock.Random.integer(1, 400))
    }
    return { success: true, data: { charges, pays }}
  }
}]
